Skip to content

fix(ci): commit Cargo.lock for reproducible builds#1123

Merged
chaliy merged 2 commits intomainfrom
claude/fix-ci-build-PXXEE
Apr 6, 2026
Merged

fix(ci): commit Cargo.lock for reproducible builds#1123
chaliy merged 2 commits intomainfrom
claude/fix-ci-build-PXXEE

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Apr 6, 2026

Summary

  • Remove Cargo.lock from .gitignore and commit it to the repo
  • Remove the cargo generate-lockfile step from CI audit job
  • Prevents spontaneous CI breakage when upstream crates publish new versions

Root cause: Cargo.lock was gitignored, so CI generated a fresh lockfile each run via cargo generate-lockfile. When python3-dll-a 0.2.15 was published to crates.io, the fresh resolve picked it up but the cargo-vet exemption still listed 0.2.14 — breaking main without any code change.

Fix: Committing Cargo.lock pins exact versions. Dependency bumps become explicit (cargo update) and show up in diffs, so cargo-vet exemptions can be updated in the same PR.

Test plan

  • cargo vet --locked passes locally
  • CI audit job passes without generate-lockfile step

chaliy added 2 commits April 6, 2026 12:33
The dependency was bumped from 0.2.14 to 0.2.15 but the cargo-vet
exemption was not updated, causing the supply chain audit to fail.
Cargo.lock was gitignored and CI generated a fresh lockfile each run.
This caused cargo-vet failures when upstream crates published new
versions between PR CI and post-merge CI on main.

- Remove Cargo.lock from .gitignore
- Commit Cargo.lock to pin exact dependency versions
- Remove generate-lockfile step from CI audit job
@chaliy chaliy merged commit 972ab2d into main Apr 6, 2026
18 of 27 checks passed
@chaliy chaliy deleted the claude/fix-ci-build-PXXEE branch April 6, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant